import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty, IsNumber } from 'class-validator';
export class CreateSystemDto {
  @ApiProperty({
    example: '',
    description: '系统名称',
  })
  @IsNotEmpty({ message: '系统名称不能为空' })
  @IsString()
  name: string;

  @ApiProperty({
    example: '',
    description: '浏览量',
  })
  @IsNotEmpty({ message: '浏览量不能为空' })
  @IsNumber({}, { message: '浏览量必须为数字' })
  pageView: number;
}
